#ifndef _XLINE_HEADER
#define _XLINE_HEADER

#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#define EXIT_ERR 	-1
#define EXIT_OK		0


// print usage
int usage(char *filename);

// open file
int open_file(char *filename, FILE **pfp);
	
// count line number of file
int count_line(char *filename);

// print color ascii code
int print_color(char *color);

int print_blink(int blink);

int print_ascii_end(int bBlink, char *pColor);

int print_line(int bLinenum, int line, char *pLine);

int help(void);

int version(void);

// print specified line
int show_line(int line, char *color, int blink, int linenum, char *filename);

#endif

